using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Tongiao.Entity
{
                

     public class Tg_LocationEntity:AF_ORM.CORE.BaseEntity
    {
         public Tg_LocationEntity()
         {
             tableName = "Tg_Location";


			 fieldInfos.Add(new FieldInfo("Tg_Location","CreatedBy","CreatedBy","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Location","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Location","Id","Id","Guid",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Location","IdLoaiDao","IdLoaiDao","string",10,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Location","LocationName","LocationName","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Location","UpdatedBy","UpdatedBy","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Location","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
         }
       //properties
                    
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected Guid m_Id;
		 protected string m_IdLoaiDao;
		 protected string m_LocationName;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;

		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public Guid Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public string IdLoaiDao

          { 
                get { 
                    return m_IdLoaiDao;}

                set{m_IdLoaiDao=value;

                    GetField("IdLoaiDao").Set();
                    GetField("IdLoaiDao").IsNull=(value == null);           
                    }
          }
		 public string LocationName

          { 
                get { 
                    return m_LocationName;}

                set{m_LocationName=value;

                    GetField("LocationName").Set();
                    GetField("LocationName").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }

}
}
